package com.jk.garden1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 公司管理
 */
@Data
@TableName("company_manage")
@Document(indexName = "company",type = "doc")
public class CompanyEntity {
    @Id
    @Field(type = FieldType.Integer)
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Field(type = FieldType.Text)
    private String companyname;//公司名称
    @Field(type = FieldType.Text)
    private String forshort;//公司简称
    @Field(type = FieldType.Text)
    private String companycode;//公司码
    @Field(type = FieldType.Text)
    private String principalname;//负责人姓名
    @Field(type = FieldType.Text)
    private String principalphone;//负责人手机号
    @Field(type = FieldType.Text)
    private String ubietylevel;//所在楼层
    @Field(type = FieldType.Text)
    private String state;//状态
    @Field(type = FieldType.Text)
    private String img;//图片
    @Field(type = FieldType.Text)
    private String buildingid;//楼宇id
    @Field(type = FieldType.Text)
    private String companyarea;//公司面积
    @Field(type = FieldType.Text)
    private String buildingname;//楼宇名称
}
